﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TianShu.SysParameterSetting.DAL.Abstracts.SystemParameterSetting
{
    public interface ISystemParameterSettingDal
    {

        Task<SystemParamterSettingCacheDto> GetSettingAsync(string code);
        Task<bool> AddOrUpdateSettingToCacheAsync(SystemParamterSettingCacheDto dto);

        Task<T> GetValue<T>(string code);
        Task SetDefaultValue(string code,string defaultValue);
    }
}
